#!/bin/sh
workdir=$1
cd $workdir;

laravel-echo-server stop --config=laravel-echo/laravel-echo-server.json
if [ "$2" = "test" ]
then
    laravel-echo-server start --force --config=laravel-echo/laravel-echo-server.json 2>&1 &
elif [ "$2" = "dev1" ]
then
    laravel-echo-server start --force --config=laravel-echo/laravel-echo-server.dev.json 2>&1 &
fi